#ifndef __Motor__
#define __Motor__

#include "main.h"

typedef enum {
  MotorDirection_Forward = 0,
  MotorDirection_Backward = 1,
} MotorDirection;

// speed 取值范围：0-100; 0 为滑行减速
void Motor_Control(MotorDirection direction, unsigned short speed);
// 刹车
void Motor_Break(void);

void Motor_ExampleWithoutLoop(void);

#endif
